package com.epam.giorgadze.task3.factory;

import com.epam.giorgadze.task3.entity.PlaneModel;

import java.util.Random;

/**
 * User: Luka
 * Date: 11.02.14
 * Time: 22:10
 */
public class PlaneModelFactory {
    public static PlaneModel createPlaneModel(String name, String name1, String email, String address) {
        Random rand = new Random();
        PlaneModel model = new PlaneModel(rand.nextDouble() * 50 + 0.1, rand.nextDouble() * 50 + 0.1, rand.nextDouble() * 50 + 0.1,
                rand.nextDouble() * 50 + 0.1, rand.nextDouble() * 50 + 0.1, ManufacturerFactory.createManufacturer(name1, email, address), name);
        return model;
    }

}
